
		
<div id="list-image" class="content scaffold-list" role="main">
	<table>
		<thead>
			<tr>
				<th><g:message code="image.filePath.label" default="filePath" /></th>
				<th><g:message code="image.fileDes.label" default="fileDes" /></th>
				<th><g:message code="image.fileName.label" default="fileName" /></th>
				<th><g:message code="operate.label" default="operate" /></th>
			</tr>
		</thead>
		<tbody>
		<g:each in="${imageInstanceList}" status="i" var="imageInstance">
			<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
			
				<td><g:link action="show" id="${imageInstance.id}">${fieldValue(bean: imageInstance, field: "filePath")}</g:link></td>
			
				<td>${fieldValue(bean: imageInstance, field: "fileDes")}</td>
			
				<td>${fieldValue(bean: imageInstance, field: "fileName")}</td>
				<td><g:link elementId="eidt-image" controller="image" class="edit" action="edit" id="${imageInstance?.id}">
						<g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:link class="edit" action="delete" id="${imageInstance?.id}" 
						onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');">
						<g:message code="default.button.delete.label" default="Delete" /></g:link>
					<g:remoteLink controller="image" action="edit" id="${imageInstance?.id}" onclick="showEditImage()"
						update="[success:'eidt-image',failure:'error']"   on404="alert('not found');">viewimage</g:remoteLink>
				</td>
			</tr>
		</g:each>
		</tbody>
	</table>
	<div class="pagination">
		<g:paginate total="${imageInstanceTotal}" />
	</div>
</div>
<script type="text/javascript">
	function showEditImage(){
		$("#eidt-image").show();
	}
	$("#eidt-image").wBox({requestType:"iframe",target:$("#eidt-image").attr('href')});
	$("#eidt-knowlege").wBox({requestType:"iframe",iframeWH:{width:800,height:400},target:$("#eidt-knowlege").attr('href')});
	//$("#eidt-image").wBox();
</script>
